<?php
$this->layout = 'column2';

        $ctBus=  Business::model()->findAll('activ=0');
        $ctREst=  RealEstate::model()->findAll('activ=0');
        $ctHom= Homemade::model()->findAll('activ=0');
        $ctServ=  Service::model()->findAll('activ=0');
        $ctUser= User::model()->findAll('status=0');
        $ctJob=Job::model()->findAll('activ=0');
?>
<div class="span10">
<div class="tabbable well"> <!-- Only required for left/right tabs -->
    <ul class="nav nav-tabs">
        <li class="active"><a href="#tab1" data-toggle="tab"><?php echo Yii::t("content", 'Utilizadores') ?><span class="badge badge-important"><?php echo count($ctUser)?></span></a></li>
        <li><a href="#tab2" data-toggle="tab"><?php echo Yii::t("content", 'Categorias',array(),'file_i18n') ?></a></li>
        <li><a href="#tab3" data-toggle="tab"><?php echo Yii::t("content", 'Negócios') ?><span class="badge badge-important"><?php echo count($ctBus)?></span></a></li>
        <li><a href="#tab4" data-toggle="tab"><?php echo Yii::t("content", 'Imobiliário') ?><span class="badge badge-important"><?php echo count($ctREst)?></span></a></li>
        <li><a href="#tab5" data-toggle="tab"><?php echo Yii::t("content", 'Produtos Caseiros') ?><span class="badge badge-important"><?php echo count($ctHom)?></span></a></li>
        <li><a href="#tab6" data-toggle="tab"><?php echo Yii::t("content", 'Serviços') ?><span class="badge badge-important"><?php echo count($ctServ)?></span></a></li>
        <li><a href="#tab7" data-toggle="tab"><?php echo Yii::t("content", 'Empregos') ?><span class="badge badge-important"><?php echo count($ctJob)?></span></a></li>

    </ul>
    <div class="tab-content">
        <div class="tab-pane active" id="tab1">
                <?php $this->renderPartial('user.views.admin.index', array('model' => new User())); ?>

        </div>
        <div class="tab-pane" id="tab2">
                <?php $this->renderPartial('//category/admin', array('model' => new Category('search'))); ?>

        </div>
        <div class="tab-pane" id="tab3">
                            <?php $this->renderPartial('//business/admin', array('model' => new Business('search'))); ?>


        </div>
        <div class="tab-pane" id="tab4">
                <?php $this->renderPartial('//realEstate/admin', array('model' => new RealEstate('search'))); ?>

        </div>
        <div class="tab-pane" id="tab5">
                <?php $this->renderPartial('//homemade/admin', array('model' => new Homemade('search'))); ?>

        </div>
        <div class="tab-pane" id="tab6">
                <?php $this->renderPartial('//service/admin', array('model' => new Service('search'))); ?>

        </div>
        <div class="tab-pane" id="tab7">
                <?php $this->renderPartial('//job/admin', array('model' => new Job('search'))); ?>

        </div>
    </div>
</div>
    </div>